package cn.icanci.snowstack.statecase;

/**
 * @author icanci
 * @date Created in 2021/05/23 22:17
 * @version 1.0
 */
public class LockedStateEntranceMachineState implements StateEntranceMachineState {
    /**
     * 投币
     * @param stateEntranceMachine 状态机对象
     * @return 返回结果
     */
    @Override
    public String insertCoin(StateEntranceMachine stateEntranceMachine) {
        return stateEntranceMachine.open();
    }

    /**
     * 投币
     * @param stateEntranceMachine 状态机对象
     * @return 返回结果
     */
    @Override
    public String pass(StateEntranceMachine stateEntranceMachine) {
        return stateEntranceMachine.alarm();
    }
}
